package com.example.zaq.model;

import lombok.Data;

import java.util.Objects;

/**
 * 20210526  zaq  用于统计图表
 * @author 阿恩
 * @date 2021/5/2620:24
 */
@Data
public class Summary {
    private Double value;
    private String name;
    private static final long serialVersionUID = 1L;

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Summary summary = (Summary) o;
        return Objects.equals(value, summary.value) &&
                Objects.equals(name, summary.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(value, name);
    }

    @Override
    public String toString() {
        return "Summary{" +
                "value=" + value +
                ", name='" + name + '\'' +
                '}';
    }
}
